package requests

type AuthAddRequest struct {
	Name  string `json:"name" validate:"required" label:"权限描述" filter:"trim"` //权限描述
	Route string `json:"route" validate:"required" filter:"trim"`             //路由地址
}

type AuthEditRequest struct {
	Id    int64  `json:"id" validate:"required"`                  //id
	Name  string `json:"name" validate:"required" filter:"trim"`  //权限描述
	Route string `json:"route" validate:"required" filter:"trim"` //路由地址
}

type AuthDeleteRequest struct {
	Id int64 `json:"id" validate:"required|int|min:1"` //id
}

type RoleAddRequest struct {
	Name string `json:"name" validate:"required" filter:"trim"` //角色描述
}

type RoleEditRequest struct {
	Id   int64  `json:"id" validate:"required"`                 //id
	Name string `json:"name" validate:"required" filter:"trim"` //角色描述
}

type RoleDeleteRequest struct {
	Id int64 `json:"id" validate:"required|int|min:1"` //id
}
